package crp.core.user.app;

import crp.core.user.domain.services.UserSearcher;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;

@ApplicationScoped
public class UserService {
    private final Instance<UserSearcher> searchers;

    @Inject
    public UserService(Instance<UserSearcher> searchers) {
        this.searchers = searchers;
    }

    public UserSearcher searcher() {
        return searchers.get();
    }
}
